home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / sossnt.zip / SOSSNT / SRC / MOUNTD.H < prev    next >
C/C++ Source or Header  |  1993-03-03  |  2KB  |  69 lines

  1. /*
  2.  *  mountd.h -- header file for PC NFS mount daemon
  3.  *
  4.  *  Author:
  5.  *      See-Mong Tan, 6/12/88]
  6.  */
  7.  
  8.   /* mount path name to file handle */
  9. extern bool_t mntpntofh();
  10.   /* initialization */
  11. extern bool_t mountd_init();
  12.   /* mount dispatch */
  13. extern void mountd_dispatch();
  14.   /* mount a filesystem */
  15. extern void mount();
  16.   /* unmount a filesystem */
  17. extern void unmount();
  18.  
  19. #define MOUNTPROG ((u_long) 100005)
  20. #define MOUNTPORT ((u_short) 1058)
  21. #define NULLPROC 0
  22. #define MOUNTPROC_MNT 1
  23. #define MOUNTPROC_DUMP 2
  24. #define MOUNTPROC_UMNT 3
  25. #define MOUNTPROC_UMNTALL 4
  26. #define MOUNTPROC_EXPORT 5
  27. #define MOUNTPROC_EXPORTALL 6
  28. #define MOUNTVERS_ORIG 1
  29. #define MOUNTVERS_OLD ((u_long) 1)
  30. #define MOUNTVERS ((u_long) 2)
  31.  
  32. bool_t xdr_path();
  33. bool_t xdr_fhandle();
  34. bool_t xdr_fhstatus();
  35. bool_t xdr_mountlist();
  36. bool_t xdr_exports();
  37.  
  38. struct mountlist {              /* what is mounted */
  39.         char *ml_name;
  40.         char *ml_path;
  41.         struct mountlist *ml_nxt;
  42. };
  43.  
  44. struct fhstatus {
  45.         int fhs_status;
  46.         fhandle_t fhs_fh;
  47. };
  48.  
  49. /*
  50.  * List of exported directories
  51.  * An export entry with ex_groups
  52.  * NULL indicates an entry which is exported to the world.
  53.  */
  54. struct exports {
  55.         dev_t             ex_dev;       /* dev of directory */
  56.         char             *ex_name;      /* name of directory */
  57.         struct groups    *ex_groups;    /* groups allowed to mount this entry */
  58.         struct exports   *ex_next;
  59.         short             ex_rootmap;   /* id to map root requests to */
  60.         short             ex_flags;     /* bits to mask off file mode */
  61. };
  62.  
  63. struct groups {
  64.         char            *g_name;
  65.         struct groups   *g_next;
  66. };
  67.  
  68.  
  69.